import http from "../http/index.js";
import config from "../config/index.js";

class IndexService {
	//示例
	async appNotice(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.appNotice,
			data: data,
			header: header,
		});
	}
	async register(data = {}, header = {}) {
		return await http.get({
			url: config.urlList.register,
			data: data,
			header: header,
		});
	}
	async registers(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.registers,
			data: data,
			header: header,
		});
	}
	async getcode(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.getcode,
			data: data,
			header: header,
		});
	}
	async login_img(data = {}, header = {}) {
		return await http.get({
			url: config.urlList.login_img,
			data: data,
			header: header,
		});
	}
	async login(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.login,
			data: data,
			header: header,
		});
	}
	async mobilelogin(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.mobilelogin,
			data: data,
			header: header,
		});
	}
	async setpwd(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.setpwd,
			data: data,
			header: header,
		});
	}
	async logout(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.logout,
			data: data,
			header: header,
		});
	}
	async showUserInfo(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.showUserInfo,
			data: data,
			header: header,
		});
	}
	async my_index(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.my_index,
			data: data,
			header: header,
		});
	}
	async resetpwd(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.resetpwd,
			data: data,
			header: header,
		});
	}
	async profile(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.profile,
			data: data,
			header: header,
		});
	}

	async indexProjectList(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.indexProjectList,
			data: data,
			header: header,
		});
	}

	async carousel(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.carousel,
			data: data,
			header: header,
		});
	}

	async indexShow(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.indexShow,
			data: data,
			header: header,
		});
	}

	async signUpList(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.signUpList,
			data: data,
			header: header,
		});
	}

	async getProjectNotice(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.getProjectNotice,
			data: data,
			header: header,
		});
	}

	async IsseeAd(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.IsseeAd,
			data: data,
			header: header,
		});
	}

	async updateCode(data = {}, header = {}) {
		return await http.get({
			url: config.urlList.updateCode + '?sign_id=' + data.sign_id + '&project_id=' + data.project_id,
			data: data,
			header: header,
		});
	}

	async updateCode_post(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.updateCode_post,
			data: data,
			header: header,
		});
	}

	async orderDetailList(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.orderDetailList,
			data: data,
			header: header,
		});
	}

	async showSubOrderDetail(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.showSubOrderDetail,
			data: data,
			header: header,
		});
	}

	async showPostProjectInfo(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.showPostProjectInfo,
			data: data,
			header: header,
		});
	}

	async postProjectInfo(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.postProjectInfo,
			data: data,
			header: header,
		});
	}

	async submitList(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.submitList,
			data: data,
			header: header,
		});
	}

	async sumbitInfo(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.sumbitInfo,
			data: data,
			header: header,
		});
	}

	async withdraw(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.withdraw,
			data: data,
			header: header,
		});
	}

	async realName(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.realName,
			data: data,
			header: header,
		});
	}

	async readNameJing(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.readNameJing,
			data: data,
			header: header
		})
	}

	async uploadIdcard(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.uploadIdcard,
			data: data,
			header: header,
		});
	}

	async bindBank(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.bindBank,
			data: data,
			header: header,
		});
	}

	async getContracts(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.getContracts,
			data: data,
			header: header,
		});
	}

	async myProjectList(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.myProjectList,
			data: data,
			header: header,
		});
	}

	async showSettlement(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.showSettlement,
			data: data,
			header: header,
		});
	}

	async noticeHome(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.noticeHome,
			data: data,
			header: header,
		});
	}

	async noticeDetail(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.noticeDetail,
			data: data,
			header: header,
		});
	}

	async allread(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.allread,
			data: data,
			header: header,
		});
	}

	async index(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.index,
			data: data,
			header: header,
		});
	}

	async forgetPwd(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.forgetPwd,
			data: data,
			header: header,
		});
	}

	async withdrawlist(data = {}, header = {}) {
		return await http.get({
			url: config.urlList.withdrawlist + '?page=' + data.page + '&limit=' + data.limit,
			header: header,
		});
	}

	async moneyLogList(data = {}, header = {}) {
		return await http.get({
			url: config.urlList.moneyLogList + '?page=' + data.page + '&limit=' + data.limit,
			header: header,
		});
	}

	async followWeChat(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.followWeChat,
			data: data,
			header: header,
		});
	}

	async readAll(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.readAll,
			data: data,
			header: header,
		});
	}

	async service(data = {}, header = {}) {
		return await http.get({
			url: config.urlList.service,
			data: data,
			header: header,
		});
	}

	async myReport(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.myReport,
			data: data,
			header: header,
		});
	}

	async projectReport(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.projectReport,
			data: data,
			header: header,
		});
	}

	async teamReport(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.teamReport,
			data: data,
			header: header,
		});
	}

	async subCommissionReport(data = {}, header = {}) {
		return await http.post({
			url: config.urlList.subCommissionReport,
			data: data,
			header: header,
		});
	}
}

export default new IndexService();